package c.h.a.m0;

import android.content.SharedPreferences;
import c.f.a.a.a.a;
import c.h.a.f0.j;
import com.liuzh.deviceinfo.DeviceInfoApp;

/* compiled from: DevicePref */
public class i {
    public static final i a = null;
    public static final SharedPreferences b = DeviceInfoApp.c.getSharedPreferences("com.liuzh.deviceinfo_preferences", 0);

    public static boolean a() {
        if (j.d.i() || a.u()) {
            return false;
        }
        return b.getBoolean("close_ad_show_donate", true);
    }

    public static boolean b() {
        if (j.d.i() || a.u()) {
            return true;
        }
        return false;
    }

    public static boolean c() {
        boolean z = false;
        int i = b.getInt("dark_mode", 0);
        if (i == 0) {
            return false;
        }
        if (i == 1) {
            return true;
        }
        if ((DeviceInfoApp.c.getResources().getConfiguration().uiMode & 48) == 32) {
            z = true;
        }
        return z;
    }
}
